package data.nanjing.expo.models.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by zjp on 2018/6/29.
 * QQ：34948062
 * github: https://www.github.com/zjp1029
 * web： http://www.zjp1029.cn
 *
 * 投标信息
 * 对应表: trade_bid_info
 */
public class TradeBidInfo {

    private Integer id;
    private Integer requireId;  //对应需求id
    private Integer userId;     //用户id
    private String contactName; //联系人
    private String cotactPhone; //联系电话
    private Integer bidPrice;   //投标价格
    private String remark;  //备注
    private String caseDesc;    //案例介绍
    private String bidStatus;   //投标状态，默认normal，接受accept

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;    //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;    //更新时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRequireId() {
        return requireId;
    }

    public void setRequireId(Integer requireId) {
        this.requireId = requireId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getCotactPhone() {
        return cotactPhone;
    }

    public void setCotactPhone(String cotactPhone) {
        this.cotactPhone = cotactPhone;
    }

    public Integer getBidPrice() {
        return bidPrice;
    }

    public void setBidPrice(Integer bidPrice) {
        this.bidPrice = bidPrice;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCaseDesc() {
        return caseDesc;
    }

    public void setCaseDesc(String caseDesc) {
        this.caseDesc = caseDesc;
    }

    public String getBidStatus() {
        return bidStatus;
    }

    public void setBidStatus(String bidStatus) {
        this.bidStatus = bidStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "TradeBidInfo{" +
                "id=" + id +
                ", requireId=" + requireId +
                ", userId=" + userId +
                ", contactName='" + contactName + '\'' +
                ", cotactPhone='" + cotactPhone + '\'' +
                ", bidPrice=" + bidPrice +
                ", remark='" + remark + '\'' +
                ", caseDesc='" + caseDesc + '\'' +
                ", bidStatus='" + bidStatus + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
